package com.zzgele.qmzb.api.bean;

import java.util.List;

/**
 * Created by Martin on 2017-08-28.
 */
public class WechatInfoBean {

    private String openid;
    private String nickname;
    private Integer sex; //普通用户性别，1为男性，2为女性
    private String province;
    private String city;
    private String country;
    private String headimgurl; //用户头像，最后一个数值代表正方形头像大小（有0、46、64、96、132数值可选，0代表640*640正方形头像），用户没有头像时该项为空
    private List<String> privilege; //用户特权信息，json数组，如微信沃卡用户为（chinaunicom）
    private String unionid; //用户统一标识。针对一个微信开放平台帐号下的应用，同一用户的unionid是唯一的。
    private String accesstoken; //接口调用凭证
    private String refreshtoken; //用户刷新access_token
    private String scope; //用户授权的作用域，使用逗号（,）分隔
    private Integer expiresin; //access_token接口调用凭证超时时间，单位（秒）
    public void setOpenid(String openid) {
        this.openid = openid;
    }
    public String getOpenid() {
        return openid;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    public String getNickname() {
        return nickname;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public Integer getSex() {
        return sex;
    }

    public void setProvince(String province) {
        this.province = province;
    }
    public String getProvince() {
        return province;
    }

    public void setCity(String city) {
        this.city = city;
    }
    public String getCity() {
        return city;
    }

    public void setCountry(String country) {
        this.country = country;
    }
    public String getCountry() {
        return country;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }
    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setPrivilege(List<String> privilege) {
        this.privilege = privilege;
    }
    public List<String> getPrivilege() {
        return privilege;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }
    public String getUnionid() {
        return unionid;
    }

    public String getAccesstoken() {
        return accesstoken;
    }
    public void setAccesstoken(String accesstoken) { this.accesstoken = accesstoken; }

    public String getRefreshtoken() {
        return refreshtoken;
    }
    public void setRefreshtoken(String refreshtoken) {
        this.refreshtoken = refreshtoken;
    }

    public String getScope() {
        return scope;
    }
    public void setScope(String scope) {
        this.scope = scope;
    }

    public Integer getExpiresin() {
        return expiresin;
    }
    public void setExpiresin(Integer expiresin) {
        this.expiresin = expiresin;
    }
}
